<?php
/* 
* @Author: Jerry-chen
* @Date:   2014-07-09 14:17:50
* @Last Modified time: 2014-07-14 21:32:13
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/

class SeatModel extends Model
{
	//指定表
	public $table = 'seat';
	public function add_()
	{

		return $this->add();
	}
	/**
	 * [get_all 查找所有]
	 * @return [type] [description]
	 */
	public function get_all_($where=null)
	{
		return $this->where($where)->all();
	}
	/**
	 * [get_one 获得一条数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function get_one($where=null)
	{
		return $this->where($where)->find();
	}
	/**
	 * [edit 修改数据]
	 * @return [type] [description]
	 */
	public function edit($where,$data=null)
	{
		return $this->where($where)->save($data);
	}
	/**
	 * [del_ 删除]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function del_($where)
	{
		return $this->where($where)->del();
	}

}

?>
